stack: Fix under transitions
authorTimm Bäder <mail@baedert.org>
Sat, 1 Jul 2017 17:15:01 +0000 (19:15 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000 (21:27 -0400)
make sure we initialize both width and height with proper values.

gtk/gtkstack.c

index baa56d4bb68a680a840820816a1a49db86d7edca..b1d515a9a35a1be13ea519523d313127b5a455f4 100644 (file)
@@ -1840,6 +1840,9 @@ gtk_stack_snapshot_under (GtkWidget   *widget,
 
   gtk_widget_get_content_size (widget, &widget_width, &widget_height);
   x = y = 0;
+  width = widget_width;
+  height = widget_height;
+
   pos_x = pos_y = 0;
 
   switch (priv->active_transition_type)